From 55f377e5bcad7b13c471d3611f79b43f4efdbefa Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Thu, 16 Apr 2026 13:27:42 +0200 Subject: [PATCH] [PATCH 08/12] doveadm: Fix ubsan unsigned integer overflow error Gbp-Pq: Name 0008-doveadm-Fix-ubsan-unsigned-integer-overflow-error.patch --- src/doveadm/doveadm-who.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/doveadm/doveadm-who.c b/src/doveadm/doveadm-who.c index 2fbef7b..ecdbb88 100644 --- a/src/doveadm/doveadm-who.c +++ b/src/doveadm/doveadm-who.c @@ -49,10 +49,10 @@ static unsigned int who_user_hash(const struct who_user *user) unsigned int hash = str_hash(user->service); if (user->username[0] != '\0') - hash += str_hash(user->username); + hash ^= str_hash(user->username); else { who_user_ip(user, &ip); - hash += net_ip_hash(&ip); + hash ^= net_ip_hash(&ip); } return hash; } -- 2.39.5